#include<iostream>
#include"boost/asio.hpp"
using namespace std;
using namespace boost::asio;


int main() {
	/*io_context io;

	ip::udp::socket sock(io);
	sock.connect(ip::udp::endpoint(ip::make_address("8.135.10.183"), 55684));
	cout << "???" << endl;
	char buf[0xFF] = "\0";
	while (true) {
		cin >> buf;
		sock.send(buffer(buf));
		memset(buf, 0, 0xFF);
		sock.receive(buffer(buf));
		cout << buf << endl;
	}
	sock.close();

	::system("pause");*/

	io_context io;
	ip::udp::socket sock(io, ip::udp::endpoint(ip::udp::v4(), 8589));
	char buf[0xFF] = "\0";
	while (1)
	{
		sock.receive(buffer(buf));
		cout << buf << endl;
		memset(buf, 0, 0xFF);
	}
}